package testClasses.misc;

import galaxies.GalaxySizeCalculator;
import gameAppLayer.GameSettings;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.logging.Level;
import java.util.logging.Logger;

import testClasses.ATest;
import testClasses.TestingSystem;
import utilities.Key;
import controller.AbstractController;

public class CustomGalaxyTest extends ATest {
	
	private static final Logger logger = Logger.getLogger(CustomGalaxyTest.class.getName());

	public CustomGalaxyTest(TestingSystem system) {
		super(system);
		this.name = "CustomGalaxyTest";
		logger.log(Level.INFO, "CustomGalaxyTest: Created");
	}

	@Override
	public boolean execute() throws FileNotFoundException, IOException,
			ClassNotFoundException {
		
		logger.log(Level.INFO, "CustomGalaxyTest: execute()");
		
		HashMap<Key, AbstractController> controllerMap = new HashMap<Key, AbstractController>();
		eventManager.addControlMapReference(controllerMap);
		
		TestGameSettingsDefaults defaults = new TestGameSettingsDefaults();
		GameSettings settings = defaults.settings;
		
		GalaxySizeCalculator galSizeCalc = new GalaxySizeCalculator();
		HashMap<String, ArrayList<ArrayList<Integer>>> galSizes = galSizeCalc.calcGalaxyDims(settings);	
		HashMap<String, Double> galaxyRotations = galSizeCalc.rotations;
		
		
		
		
		
		
		return false;
	}

}
